﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlexySys.Common.Items
{
    public enum CommandType
    {
        Unknown = 0,
        Save
    }

    public delegate void CommonCommandEventHandler(object sender, CommonCommandEventArgs args);

    public class CommonCommandEventArgs : CancelEventArgs
    {
        public CommandType CommandType { get; set; }

        public CommonCommandEventArgs(CommandType commandType)
        {
            CommandType = commandType;
        }
    }

    public interface ICommonCommand
    {
        event CommonCommandEventHandler ExecuteCommand;

    }
}
